<me:UIVRK x:Class="WPFExcelReport.TVR04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"    
                    xmlns:KR="clr-namespace:WPFExcelReport;assembly=TKUNDADR" 
                    xmlns:KD="clr-namespace:WPFExcelReport;assembly=TKDSTAMM"  
                    xmlns:ZA="clr-namespace:WPFExcelReport;assembly=TZABED"  
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    FontSize="14"
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIVRK.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVRK.Resources>
    <StackPanel>        
    <WrapPanel>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                   
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=发票:}}"></TextBlock>
                <TextBlock Grid.Column="1"  Text="{Binding VRKRENR}"   Width="Auto" /> 
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=发票总金额:}}"></TextBlock>
                <TextBlock Grid.Column="1"   Text="{Binding VRKGESWERTN, Source={StaticResource ResourceKey=vwMaster},Converter={StaticResource ResourceKey=d100}}" Width="100" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=货物价值:}}"></TextBlock>
                <TextBlock Grid.Column="1"  Text="{Binding VRKWAWERT,Converter={StaticResource ResourceKey=d100}}" Width="100" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=附加费:}}"></TextBlock>
                <TextBlock Grid.Column="1"      Text="{Binding VRKZUAB,Converter={StaticResource ResourceKey=d100}}" Width="100" />
            </Grid> 
        </WrapPanel> 
        <WrapPanel Visibility="{Binding IsNew,ElementName=TV,Converter={StaticResource bv}}">
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=选择客户:}}"></TextBlock>
                <KD:TSKD02 KEY="{Binding KUNDNR,ElementName=TV}"/>
                <KR:TSKA02  Name="cKA02"
                    KUNDNR="{Binding KUNDNR,ElementName=TV}"  
                            ORDERNUM="{Binding VRAD,ElementName=TV}"                            
                            KEY="{Binding ADRSL,ElementName=TV}"   
                            />
            </Grid> 
        </WrapPanel>
    </StackPanel>
</me:UIVRK> 
 
